package com.qding.park.manager.app.queue.handle;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.qding.park.common.core.exceptions.BaseException;
import com.qding.park.manager.facade.queue.service.ConfDataFacade;
import com.qding.park.manager.pojo.queue.QueueMsg;

/**
 * @ClassName InviteTimeOutHandle
 * @Description TODO(用户数据同步作业)
 * @author Administrator
 * @Date 2016年9月17日 下午4:04:55
 * @version 1.0.0
 */
@Component("userInfoSyncHandle")
public class UserInfoSyncHandle extends AbstractAllHandle {
	// @Autowired
	// private CarFacade carFacade;

	@Autowired
	private ConfDataFacade confDataFacade;

	@Override
	void actualHandle(QueueMsg msg) throws BaseException {
		try {
		    confDataFacade.confSync();
		} catch (Exception e) {
			exceptionHandle.handle(e);
		}

	}

	@Override
	boolean failDiscardRollBacK(QueueMsg msg) {
		_log.info("用户数据同步作业 回滚" + msg);
		return true;
	}

}
